/**
 * 事项表
 * @author 康文程
 * @date 2024-1-22 下午 02:22
 */
class Matter {
    /**
     * 删除
     * @return {Promise<unknown>}
     * @constructor
     */
    deleteMatterById(mattersId){
        return new Promise((resolve, reject) => {
            $.ajax({
                url: "/www.xiaomi.com/background/delete/matter/by/id",
                method: "GET",
                data: {
                    mattersId: mattersId
                },
                success: function (response) {
                    resolve(response);
                },
                error: function (error) {
                    reject(error);
                }
            });
        });
    }
}